[#2620] feat(spark-connector): support hive table format properties#2605
[#2620] feat(spark-connector): support hive table format properties#2605jerryshao merged 11 commits intoapache:mainfrom
Conversation
bc0e4cb to
b485ac4
Compare
|
It's ready to review now, @jerryshao @qqqttt123 @mchades @yuqi1129 @diqiu50 please help to review when you are free. |
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Outdated
Show resolved
Hide resolved
spark-connector/src/main/java/com/datastrato/gravitino/spark/connector/PropertiesConverter.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Outdated
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/datastrato/gravitino/integration/test/util/spark/SparkTableInfoChecker.java
Show resolved
Hide resolved
...tor/src/main/java/com/datastrato/gravitino/spark/connector/hive/HivePropertiesConverter.java
Show resolved
Hide resolved
|
@yuqi1129 @mchades @diqiu50 ,is there any other comments? @jerryshao do you have time to review? |
|
Overall LGTM |
|
@jerryshao do you have time to review this PR? |
| public static final String SPARK_HIVE_STORED_AS = "hive.stored-as"; | ||
| public static final String SPARK_HIVE_INPUT_FORMAT = "input-format"; | ||
| public static final String SPARK_HIVE_OUTPUT_FORMAT = "output-format"; | ||
| public static final String SPARK_HIVE_SERDE_LIB = "serde-lib"; |
There was a problem hiding this comment.
Are these configurations defined by Spark or by you?
There was a problem hiding this comment.
spark use raw string like hive.stored-as, I defined SPARK_HIVE_STORED_AS to refer to it.
| HivePropertiesConstants.GRAVITINO_HIVE_SERDE_LIB); | ||
|
|
||
| /** | ||
| * CREATE TABLE xxx STORED AS PARQUET will save "hive.stored.as" = "PARQUET" in property. |
There was a problem hiding this comment.
Is it "hive.stored-as" or "hive.stored.as"?
There was a problem hiding this comment.
hive.stored-as, will correct it
|
@jerryshao all comments are addressed, please help to review again |
|
LGTM. Thanks @FANNG1 for your work. |
|
Sorry, I've dealt with some things during this time. Have you completed this part of the work? |
What changes were proposed in this pull request?
support hive table format properties
Why are the changes needed?
Fix: #2620
Does this PR introduce any user-facing change?
no
How was this patch tested?
UT and IT